<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			input:disabled{
				border:1px solid red;
			}
			input:enabled{
				border:1px solid lawngreen;
			}
			input:checked+span{
				color:red;
			}
		</style>
	</head>
	<body>
		<input type="text" name="" id="" />
		<input type="text" disabled="disabled" name="" id="" /><br />
		爱好： <input type="checkbox" name="" id="" /><span>游泳</span>
		<input type="checkbox" name="" id="" /><span>羽毛球</span>
		<input type="checkbox" name="" id="" /><span>台球</span>
		<input type="checkbox" name="" id="" /><span>篮球</span>
		
	</body>
</html>
